const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    open: true, //自动访问服务
    proxy: {
      //代理
      "/api": {
        target: process.env.VUE_APP_BASE_SERVE, //反向代理地址，全局配置
        changeOrigin: true, //可跨越
        timeout:600000,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
});
